home *** CD-ROM | disk | FTP | other *** search
/ Network Support Library / RoseWare - Network Support Library.iso / apidev / batuti.arc / READ.ME < prev    next >
Text File  |  1990-01-11  |  3KB  |  148 lines

  1. 1/11/90 - ANW batch utilities
  2.  
  3. Purpose & use
  4. -------------
  5.  
  6. The enclosed utilities are intended to help Netware users build flexible
  7. start up batch files for users on a network. Below is a summary of each
  8. utility's use:
  9.  
  10. setcdr -- Sets an environment variable to be the current drive specification.
  11.  
  12.        usage:
  13.            setcdr env-var
  14.        example:
  15.            setcdr x
  16.            set
  17.            x=d:
  18.  
  19. setcwd -- Sets an environment variable to be the current working directory.
  20.  
  21.        usage:
  22.                    setcwd env-var
  23.            example:
  24.                    setcwd cwd
  25.                    set
  26.                    cwd=c:\home\name
  27.  
  28. setnic  -- Sets an environment variable to be the nic's address.
  29.  
  30.        usage:
  31.                    setnic env-var
  32.            example:
  33.            setnic nic
  34.                    set
  35.            nic=0000380000A4
  36.  
  37. setuser -- Sets an environment variable to a user's login name.
  38.  
  39.        usage:
  40.            setuser env-var
  41.            example:
  42.            setuser usr
  43.                    set
  44.                    usr=richard
  45.  
  46.  
  47. Notes on make files
  48. -------------------
  49.  
  50. Edit each make file & change the locale information as to where your libs,
  51. includes, etc. are.  Each make file can be invoked by: make -fsetnic or
  52. alterantly, the batch file makeall.bat can be invoked.
  53.  
  54. C Compiler
  55. ----------
  56.  
  57. This code was compiled using Turbo C 2.0, all available ANSI C checks
  58. were used.
  59.  
  60. inquires can be address via easyplex to CIS # 75470,1057 -Richard Connelly
  61.  
  62. An example of setnic usage -- 123 Release 3.0 invokation by network users.
  63.  
  64. @echo off
  65. :  123.bat
  66. :
  67. :  123 v3.0 (Network Edition) batch file for eng_lan
  68. :  1/4/90 - created
  69. :
  70. cls
  71. :
  72. :  Set the nic address to env. var. n
  73. :
  74. setnic n
  75. :
  76. :  Determine the name of the configuration file for this hardware
  77. :
  78. if %n%==0000380000A4 set u=paul
  79. if %n%==00003800006F set u=andie
  80. if %n%==02608C767257 set u=corinne
  81. if %n%==0000380000C0 set u=carolyn
  82. if %n%==000038000041 set u=sanchez
  83. if %n%==02608C818255 set u=gay
  84. if %n%==02608C676504 set u=ray
  85. if %n%==0000C0B4F312 set u=dave
  86. if %n%==0000C01FE412 set u=stormi
  87. if %n%==0000C0DDFE12 set u=theresa
  88. if %n%==0000C0C93414 set u=pinson
  89. if %n%==0000C0DD2F14 set u=michelle
  90. if %n%==0000C0F6B814 set u=darrell
  91. if %n%==0000C0D6B414 set u=david
  92. if %n%==0000C0828C14 set u=norbert
  93. if %n%==0000C04F8314 set u=bob
  94. if %n%==0000C00B3614 set u=rc
  95. if %n%==0000C0B2DC14 set u=toby
  96. :
  97. : release env. var. n
  98. :
  99. set n=
  100. :
  101. :  map lotus's path  -- s1 = sys:\public
  102. :
  103. map ins s1:=s1:lotus\123r3 >nul:
  104. :
  105. :  copy the machine's configuration file usr.lcf
  106. :
  107. ncopy \public\lotus\123r3\dcfs\%u%.lcf lotus.lcf >nul:
  108. :
  109. :  call 123 with the users device configuration file usr.dcf
  110. :
  111. \public\lotus\123r3\123 \public\lotus\123r3\dcfs\%u%
  112. :
  113. :  update the .lcf file
  114. :
  115. ncopy lotus.lcf \public\lotus\123r3\dcfs\%u%.lcf >nul:
  116. :
  117. :  cleanup
  118. :
  119. set u=
  120. map del s1: >nul:
  121. del lotus.lcf >nul:
  122.  
  123.  
  124. An example of using setuser on our network:
  125. ---------------------------------------------
  126.  
  127. @echo off
  128. :
  129. :home.bat  -- always returns a user to their home directory
  130. :
  131. :
  132. setuser u
  133. cd \home\%u%
  134. set u=
  135.  
  136.  
  137. An example of using setcwd on our network:
  138. ------------------------------------------
  139.  
  140. @echo off
  141. :
  142. : Run 123's Release 3.0 (Network Edition) trans program
  143. :
  144. setcwd c
  145. cd \public\lotus\123r3
  146. trans
  147. cd %c%
  148. set c=